package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusinessFileMapper;
import com.ruoyi.business.domain.BusinessFile;
import com.ruoyi.business.service.IBusinessFileService;
import com.ruoyi.common.core.text.Convert;

/**
 * 教师信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-20
 */
@Service
public class BusinessFileServiceImpl implements IBusinessFileService 
{
    @Autowired
    private BusinessFileMapper businessFileMapper;

    /**
     * 查询教师信息
     * 
     * @param fileId 教师信息主键
     * @return 教师信息
     */
    @Override
    public BusinessFile selectBusinessFileByFileId(Long fileId)
    {
        return businessFileMapper.selectBusinessFileByFileId(fileId);
    }

    /**
     * 查询教师信息列表
     * 
     * @param businessFile 教师信息
     * @return 教师信息
     */
    @Override
    public List<BusinessFile> selectBusinessFileList(BusinessFile businessFile)
    {
        return businessFileMapper.selectBusinessFileList(businessFile);
    }

    /**
     * 新增教师信息
     * 
     * @param businessFile 教师信息
     * @return 结果
     */
    @Override
    public int insertBusinessFile(BusinessFile businessFile)
    {
        return businessFileMapper.insertBusinessFile(businessFile);
    }

    /**
     * 修改教师信息
     * 
     * @param businessFile 教师信息
     * @return 结果
     */
    @Override
    public int updateBusinessFile(BusinessFile businessFile)
    {
        return businessFileMapper.updateBusinessFile(businessFile);
    }

    /**
     * 批量删除教师信息
     * 
     * @param fileIds 需要删除的教师信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFileByFileIds(String fileIds)
    {
        return businessFileMapper.deleteBusinessFileByFileIds(Convert.toStrArray(fileIds));
    }

    /**
     * 删除教师信息信息
     * 
     * @param fileId 教师信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessFileByFileId(Long fileId)
    {
        return businessFileMapper.deleteBusinessFileByFileId(fileId);
    }
}
